package com.hmkj.core.po.amount;

import com.hmkj.common.baseMapper.GenericPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.function.Consumer;


/**
 * 模拟账户表实体信息<br>
 *
 * @author eproo
 * @date   2017-11-19 05:19:03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "模拟账户表")
@Table(name = "fm_account_simulate")
public class AccountSimulate extends GenericPo<Integer> {

    public static final String TABLE_NAME = "fm_account_simulate";

	
	/**用户ID**/
	@ApiModelProperty(value = "用户ID")
	private Integer userId;
	/**账户总额**/
	@ApiModelProperty(value = "账户总额")
	private BigDecimal total;
	/**可用金额**/
	@ApiModelProperty(value = "可用金额")
	private BigDecimal available;
	/**冻结金额**/
	@ApiModelProperty(value = "冻结金额")
	private BigDecimal freeze;

    public AccountSimulate(){}

    public AccountSimulate(Consumer<AccountSimulate> consumer){
    consumer.accept(this);
    }
}

